package edu.mju.util;

import java.io.File;

/**
 * 删除文件
 * @Author:wyp
 * @Date:2020/6/14 13:17
 */
public class FileUtil {
    public static  boolean deleteFile(String path) {
        boolean flag = false;
        //path数据库保存路径
        File file = new File(path);
        // 路径为文件且不为空则进行删除
        if (file.isFile()) {
            file.delete();
            flag = true;
        }
        return flag;
    }
}
